package flatlandRPGTest;

import org.lwjgl.util.vector.Vector2f;
import flatlandRPG.GLPrimitive;
import flatlandRPG.GLPolygon;

// -------------------------------------------------------------------------
/**
 *  Tests the GLPolygon class.
 *
 *  @author evant
 *  @version Apr 15, 2011
 */
public class GLPolygonTest
    extends AbstractGLPrimitiveTest
{
    @Override
    public GLPrimitive getPrimitive()
    {
        return new GLPolygon(
            new Vector2f(0, 0),
            new Vector2f(0, 1),
            new Vector2f(1, 1));
    }

    public Vector2f getInnerPoint()
    {
        return new Vector2f(0.1f, 0.8f);
    }

    public Vector2f getOuterPoint()
    {
        return new Vector2f(-1.0f, -1.0f);
    }

}
